package com.nlgc365.designpattern.Chapter04_Pattern.Struct.P02_Bridge.Example;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

/**
 * For source reading
 */
public class MySqlDemo {
    public static void main(String[] args) {
        try {
            Class.forName("com.mysql.jdbc.Driver");
            Connection connection = DriverManager.getConnection("xxx");
        } catch (ClassNotFoundException e) {
            throw new RuntimeException(e);
        } catch (SQLException e) {
            throw new RuntimeException(e);
        }
    }
}
